PHY RAY CAST CLOSEST SHAPE

Perform a ray cast and check if a collision occurs between the ray and any objects.

  Syntax
Return Integer=PHY RAY CAST CLOSEST SHAPE(Float Value, Float Value, Float Value, Float Value, Float Value, Float Value)
  Parameters
originX#
Float
origin of the ray on the X axis
originY#
Float
origin of the ray on the Y axis
originZ#
Float
origin of the ray on the Z axis
directionX#
Float
direction of the ray on the X axis
directionY#
Float
direction of the ray on the Y axis
directionZ#
Float
direction of the ray on the Z axis

  Returns

A value of 1 is returned if the ray hit an object whereas 0 is returned if the ray did not hit an object

  Description

This command will only fill in collision data for the closest rigid body.

  Example Code
No example code is provided for this command